package com.ssy.lingxi.order.model.bo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;
import java.util.Objects;

/**
 * 计划送货物料订单日期详情
 * @author czh
 * @version 2.0.0
 * @date 2021-09-23
 */
@Data
public class DeliveryPlanDayBO implements Serializable {

    private static final long serialVersionUID = 688645304635218321L;

    public DeliveryPlanDayBO(){

        this.createNotice = false;

        this.createDelivery = false;

    }

    /**
     * 日期 MM-dd
     */
    private String day;

    /**
     * 计划送货数量
     */
    private BigDecimal planCount;

    /**
     * 是否已生成通知单
     */
    private Boolean createNotice;

    /**
     * 是否已生成送货单
     */
    private Boolean createDelivery;

    public BigDecimal getPlanCount() {

        return Objects.isNull(planCount) ? BigDecimal.ZERO : planCount;

    }
}
